package com.xiaocikuai.smallchunks.mapper.Word;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Service
public interface WordMapper {
    @Select("SELECT id FROM words WHERE name = #{name}")
    Integer selectId(String name);

    @Insert("INSERT INTO words (name) VALUES (#{name})")
    void insertNew(String name);


}
